/**************************************************************************
 OmegaT - Computer Assisted Translation (CAT) tool 
          with fuzzy matching, translation memory, keyword search, 
          glossaries, and translation leveraging into updated projects.

 Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk
           (C) 2007-2009 Didier Briel
 
               Home page: http://www.omegat.org/
               Support center: http://groups.yahoo.com/group/OmegaT/

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
**************************************************************************/

package org.omegat.filters3.xml.adempiere;

import java.util.regex.Pattern;
import org.omegat.filters3.xml.DefaultXMLDialect;
import org.omegat.filters3.Attributes;
import org.omegat.filters3.Attribute;

/**
 * This class specifies Adempiere Translation XML Dialect.
 *
 * @author jker
 */
public class AdempiereDialect extends DefaultXMLDialect
{

    private static final Pattern ADEMPIERE_ROOT =
            Pattern.compile("adempiereTrl");

    private static final String DTD =
            "/org/omegat/filters3/xml/adempiere/res/adempiereTrl.dtd";

    public AdempiereDialect()
    {
        defineConstraint(CONSTRAINT_ROOT, ADEMPIERE_ROOT);
        
        defineParagraphTags(new String[]
        {
            "adempiereTrl",                                                           // NOI18N
            "row",                                                           // NOI18N
            "value"
        });

        //defineTranslatableAttributes(new String[]{
        //});
        
    }

}
